package store.lunangangster.engine.impl.entity.mgr;

import store.lunangangster.engine.ProcessEngineConfiguration;
import store.lunangangster.engine.impl.entity.DeploymentEntity;
import store.lunangangster.engine.impl.entity.DeploymentEntityImpl;
import store.lunangangster.engine.impl.query.DeploymentQuery;

public class DeploymentEntityManagerImpl extends
    AbstractEntityManagerImpl<DeploymentEntity> implements DeploymentEntityManager {

  public DeploymentEntityManagerImpl(
      ProcessEngineConfiguration processEngineConfiguration) {
    super(processEngineConfiguration);
  }

  @Override
  public Class<? extends DeploymentEntity> getManagedEntityClass() {
    return DeploymentEntityImpl.class;
  }

  @Override
  public DeploymentEntity create() {
    return new DeploymentEntityImpl();
  }

  @Override
  public int selectCount(DeploymentQuery query) {
    return (int) getDbSqlSession().selectOne("selectDeploymentCountByCondition", query);
  }
}
